package cn.hxzy.teacher.mapper;

import cn.hxzy.common.domain.TaskManager;
import cn.hxzy.common.domain.vo.TaskUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface TaskManagerMapper01 extends BaseMapper<TaskManager> {

    // 查询 该做这个作业的所有人
    List<TaskUser> selectTaskUser(@Param("id") Integer id,
                                  @Param("taskId") Integer taskId,
                                  @Param("classId") Integer classId
                                  );

    // 查询章节
    String selectChapterNameById(@Param("id") Integer id,
                                 @Param("time") String submitTime
    );
    //查询小节
    List<Map> selectSectionNameById(@Param("id") Integer id,
                                    @Param("time") String time);
    //查询班级
    List<Map> selectClassNameById(@Param("id") Integer id);
}
